<template>
  <div class="result">
    <div class="left">
      <div class="phone">
        <div class="title">隆鼻术式大全</div>
        <div class="desc">鼻子是五官中非常重要的部分，挺拔漂亮的鼻子使面部轮廓看起来清晰，秀丽，因此好多人总是千辛万苦地寻找适合自己的隆鼻方式。那么，如何才能选择一种适自己的隆鼻手术方法呢?</div>
        <hr>
        <symptoms></symptoms>
        <hr>
        <div class="project">根据你的选择，我们建议你的方案有：</div>
        <project></project>
        <project></project>
        <hr>
        <recommend></recommend>
        <hr>
        <interest></interest>
        <!-- <component :is="o" v-for="o in coms" :key="o"></component> -->
      </div>
    </div>
    <div class="right">
      <div class="top">
        <span>落地页名称：</span>
        <span>{{name}}</span>
      </div>
      <div class="weixin">
        <div>微信扫码查看</div>
        <div class="img-wrap"><img src="../assets/images/erweima.png" alt=""></div>
      </div>
      <div class="url" ref="url" id="url">{{url}}</div>
      <div class="copy-url" @click="copyUrl">
        复制链接
      </div>
    </div>
  </div>
</template>
<script>
import Symptoms from "../components/longbi/Symptoms";
import Project from "../components/longbi/Project";
import Recommend from "../components/longbi/Recommend";
import Interest from "../components/longbi/Interest";
import Case from "../components/longbi/Case";
import Doctor from "../components/longbi/Doctor";
import Attention from "../components/longbi/Attention";
import Organization from "../components/longbi/Organization";
export default {
  name: "longbi_1",
  components: {
    Symptoms,
    Project,
    Recommend,
    Interest,
    Case,
    Doctor,
    Attention,
    Organization
  },
  data() {
    return {
      name: "隆鼻",
      url: "http://u793791.vip.h5.xingdongliu.com/h5preview/UXjbMWK",
      mycomponent: "Organization",
      coms: [
        "Symptoms",
        "Project",
        "Case",
        "Doctor",
        "Attention",
        "Organization",
        "Recommend",
        "Interest"
      ]
    };
  },
  methods: {
    copyUrl() {
      let ref = this.$refs.url.innerHTML;
      const input = document.createElement("input");
      document.body.appendChild(input);
      input.setAttribute("value", ref);
      input.select();
      if (document.execCommand("copy")) {
        document.execCommand("copy");
      }
      document.body.removeChild(input);
    }
  }
};
</script>

<style lang="scss" scoped>
@media screen and (max-width: 480px) {
  .result {
    .left {
      .phone {
        width: 100%;
        overflow-y: auto;
        .title {
          font-size: 24px;
          text-align: center;
          line-height: 60px;
        }
        .desc {
          margin: 5px;
          text-indent: 20px;
          line-height: 20px;
        }
        .project {
          margin-bottom: 20px;
        }
      }
    }
    .right {
      display: none;
    }
  }
}
@media screen and (min-width: 481px) {
  .result {
    margin: 5% auto;
    padding: 40px;
    width: 1200px;
    height: 700px;
    .left {
      float: left;
      width: 50%;
      height: 100%;
      .phone {
        height: 667px;
        width: 375px;
        border: 1px solid black;
        overflow-y: auto;
        .title {
          font-size: 24px;
          text-align: center;
          line-height: 60px;
        }
        .desc {
          margin: 5px;
          text-indent: 20px;
          line-height: 20px;
        }
        .project {
          margin-bottom: 20px;
        }
      }
    }
    .right {
      float: left;
      width: 50%;
      height: 100%;
      .top {
        margin: 40px 0 40px 0;
        font-size: 20px;
      }
      .weixin {
        font-size: 18px;
        .img-wrap {
          width: 210px;
          height: 210px;
          margin: 20px;
          img {
            width: 100%;
          }
        }
      }
      .url {
        margin: 20px 0 20px 0;
        font-size: 20px;
      }
      .copy-url {
        width: 80px;
        height: 50px;
        line-height: 50px;
        background-color: aqua;
        text-align: center;
        cursor: pointer;
      }
    }
  }
}
</style>
